package chepter05.example03;

import java.util.Locale;

public class Example03 {

        public static void main(String[] args) {
            String str = "abcd";
            System.out.println("将字符串转换为字符数组的后果：");
            char[] charArry = str.toCharArray();
            for (int i = 0;i < charArry.length; i ++){
                if (i != charArry.length - 1){
                    System.out.println(charArry[i] + ",");
                }else {
                    System.out.println(charArry);
                }
            }
            System.out.println("将int值转换为String类型之后结果："+ String.valueOf(12));
            System.out.println("将字符串转换成大小写字母之后结果:"+str.toLowerCase(Locale.ROOT) );
            System.out.println("将字符串转换成小写字母之后结果:"+str.toLowerCase());

        }
    }

